package com.ciwong.epaper.modules.me.ui;

import com.ciwong.epaper.application.EApplication;
import com.ciwong.epaper.application.EpaperConstant;
import com.ciwong.epaper.modules.cordva.BaseHtmlActicity;
import com.ciwong.epaper.util.HttpRequest;
import com.ciwong.libs.utils.CWLog;
import com.ciwong.libs.utils.volley.BaseRequest;

/**
 * date :2018/5/24
 * author: lzh
 * description:  我的成积分
 * version:2.6
 */

public class PointRuleActivity extends BaseHtmlActicity {
    private String clientId;
    private String userId;

    @Override
    protected void init() {
        super.init();
    }

    @Override
    protected void loadData() {
        super.loadData();
        BaseRequest.VerifyInfo verifyInfo = HttpRequest.getVerifyInfo();
        if (verifyInfo != null) {
            clientId = verifyInfo.getClientId();
            userId = String.valueOf(EApplication.getInstance().getUserInfoBase().getUserId());
        }
        String url = EpaperConstant.URL_H5_MINE_GUIDE + "clientId=" + clientId + "&userId=" + userId + "&brandId=" + EApplication.BRAND_ID;
        setStartURL(url);
        CWLog.i("积分规则url:", url);
        webView.getSettings().setTextZoom(EApplication.getInstance().gettextZoom());
        webView.getSettings().setSavePassword(false);
        loadUrl(startURL.toString());

    }
}
